:root {
  --text-color: #000;
  --secondary-color: #5151ef;
  --main-color: white;
  --light-bg-color: rgb(246, 246, 246);
  --dark-bg-color: #0f0f28;
  --sub-text-color: #808080;
}

body {
  /* margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--dark-bg-color); /* ← No flash of white 
  color: var(--text-color); */
  overflow-x: hidden;
}

#main-content {
  opacity: 0;
  /* transform: translateY(30px); */
  transition: opacity 0.9s ease, transform 0.9s ease;
}

#preloader {
  position: fixed;
  inset: 0;
  background: var(--dark-bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: all 0.6s ease;
  overflow: hidden;
}

#stars {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.preloader-content {
  text-align: center;
  color: white;
  z-index: 2;
}

.logo-glow {
  font-size: 2.8rem;
  font-weight: 700;
  text-shadow: 0 0 15px var(--secondary-color);
  color: white;
}

.logo-glow span {
  color: var(--secondary-color);
}

.loading-text {
  margin-top: 10px;
  font-size: 1.2rem;
  color: var(--sub-text-color);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
